package com.m3958.logcollector.vo;

import java.util.Set;

import com.m3958.logcollector.domain.Person;

public class PersonInUserState {

    private final long id;
    private final String email;
    private final String mobile;
    private final String name;
    
    private final int level;

    private final String displayName;
    
    private final Set<RoleVo> roles;
    
    public PersonInUserState(Person person) {
        this.id = person.getId();
        this.email = person.getEmail();
        this.mobile = person.getMobile();
        this.name = person.getName();
        this.displayName = person.getDisplayName();
        this.level = person.getLevel();
        this.roles = RoleVo.convertFromRoles(person.getRoles());
    }

    public long getId() {
        return id;
    }


    public String getEmail() {
        return email;
    }


    public String getMobile() {
        return mobile;
    }


    public String getName() {
        return name;
    }


    public Set<RoleVo> getRoles() {
        return roles;
    }

    public String getDisplayName() {
        return displayName;
    }
    
    public int getLevel() {
        return level;
    }
}
